/*
 * Copyright (C) 2003, Velocityme Partnership
 * OrganisationValueToString.java
 *
 * Created on 30 August 2003, 05:25
 */

package com.velocityme.valueobjects;

import java.util.Comparator;

/**
 *
 * @author  Robert Crida Work
 */
public class OrganisationValueToString extends OrganisationValue implements Comparable {
    
    /** Creates a new instance of OrganisationValueToString */
    public OrganisationValueToString(OrganisationValue p_value) {
        super(p_value);
    }
    
    public String toString() {
        return getContactableValue().getNodeValue().getName();
    }
    
    public int compareTo(Object o) {
        return toString().compareTo(o.toString());
    }
    
}
